# -*- coding: utf-8 -*-

from vtn_base import VtnBase

import vtn_factory
import model

import operations.cd
import operations.usb

class VtnResumen(VtnBase):

    def __init__(self, parent_widget):
        VtnBase.__init__(self, "vtn_resumen", parent_widget)
        self.show_background_image("bk_toquin")
        self.fill_treeview_with_model(self.treeview_resumen, "marked")
        self.show()

    def on_btn_ayuda_clicked(self, widget, *args):
        print "on_btn_ayuda_clicked called with self.%s" % widget.get_name()

    def on_btn_copiar_cddvd_clicked(self, widget, *args):
		toquin_burner = operations.cd.ToquinBurner(model.current_model)
		return_id = toquin_burner.burn_installables()
		toquin_burner.destroy()

    def on_btn_copiar_usb_clicked(self, widget, *args):
		toquin_usb_copier = operations.usb.ToquinUSBCopier(model.current_model)
		return_id = toquin_usb_copier.copy_installables()
		toquin_usb_copier.destroy()
